
<c:if test="${!empty placeOrderFailureFlag}">
    <p class="message errorMessage">Unable to place order.</p>
</c:if>
<c:if test="${!empty orderId}">
    <p class="message confirmationMessage">Order of ID ${orderId} has been successfully placed.</p>
</c:if>
<form method="post" action="<c:url value='placeOrder'/>">
    <fieldset>
        <legend>Customer Details</legend>
        <label for="customerFirstName">First name:</label><input type="text" name="customerFirstName" /><br />
        <label for="customerLastName">Last name:</label><input type="text" name="customerLastName" /><br />
        <label for="customerAddress">Address:</label><input type="text" name="customerAddress" /><br />
        <label for="customerPhoneNumber">Phone number:</label><input type="text" name="customerPhoneNumber" /><br />
        <label for="quantity">Quantity:</label><input type="text" name="quantity" /><br />
        <label for="product">Product:</label>
        <select name="product">
            <c:forEach var="product" items="${products}">
                <option value="${product.id}">${product.name}</option>
            </c:forEach>
        </select><br />
        <input type="submit" class="submit" />
    </fieldset>

</form>



